<include file="Public:pagerForm" />
<script type="text/javascript">
	function reload6() {
		navTab.reload("__URL__", {});
	}
	function cusdbltable(target,rel){
	    if( target == 'sid_customer'){
	    $.pdialog.open("__URL__/read/id/"+rel+"/sid_customer="+rel,"pdialogid", "查看", { max:false, mask:true, width: 505, height: 350});
	    } 
	  }
</script>
<div class="page">
	<div class="pageHeader">
		<form onsubmit="return navTabSearch(this);" action="__URL__"  rel="pagerForm"
			method="post">
			<div class="searchBar">
				<table class="searchContent">
					<tr>
						<td>客户名称： <input type="text" name="customername"  value="{$customername}" class="medium"></td>
						<td>客户类型： <input type="text" name="customertype" value="{$customertype}" class="medium"></td>
					</tr>
				</table>
				<div class="subBar">
					<ul>
						<li>
							<div class="buttonActive">
								<div class="buttonContent">
									<button type="submit">查询</button>
								</div>
							</div>
						</li>
					</ul>
				</div>
			</div>
		</form>
	</div>
	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="__URL__/add" target="dialog"
					mask="true" width="505" height="350"><span>新增</span></a></li>
				<li><a class="delete"
					href="__URL__/delete/navTabId/__MODULE__"
					target="selectedTodo" postType="string" title="你确定要删除吗？"
					warn="请选择信息"><span>删除</span></a></li>
				<li><a class="edit" href="__URL__/edit/id/{sid_customer}"
					target="dialog" mask="true" width="505" height="350"><span>修改</span></a></li>
				<li><a class="edit" href="__URL__/readSupply/id/{sid_customer}" target="navTab"  rel="readSupply"
					><span>查看供货信息</span></a></li>
				<li><a class="edit" href="__URL__/payAdd/id/{sid_customer}"
					target="dialog" mask="true" warn="请选择客户" rel="payadd" width="505" height="300"><span>收款录入</span></a></li>
				<li><a class="edit" href="__URL__/readPay/id/{sid_customer}"
					target="dialog" mask="true" rel="readPay" warn="请选择客户"><span>查看收款信息</span></a></li>
				<li><a class="icon" href="__URL__/export/customername/{$customername}/customertype/{$customertype}" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
				<li class="line">line</li>
				<li><a class="icon" href="#" onclick="reload6()"><span>刷新</span></a></li>
				<li><a class="icon" href="__URL__/trash" target="navTab" mask="true" rel="customer_trash" title="回收站" width="540" height="320"><span>回收站</span></a></li>
			</ul>
		</div>


		<table class="table" layoutH="136" width="100%">
			<thead>
				<tr>
					<th align="center" width="40"><input type="checkbox"
						group="ids" class="checkboxCtrl"></th>
					<!-- <th width="80" align="center">客户号</th> -->
					<th width="80" align="center">客户类型</th>
					<th width="100" align="center">客户名称</th>
					<th width="130" align="center">业务员</th>
					<th width="120" align="center">电话</th>
					<th width="140" align="center">邮箱</th>
					<th width="120" align="center">地址</th>
					<th width="100" align="center">操作</th>
				</tr>
			</thead>
			<tbody>
				<define name="number" value="1" />
				<volist id="vo" name="list">
				<tr target="sid_customer" rel="{$vo['id']}" ondblclick="cusdbltable('sid_customer',{$vo.id})">
					<td><input type="checkbox" name="ids" value="{$vo['id']}" /></td>
					<!-- <td>{$vo['customerno']}</td> -->
					<td>{$vo['customertype']}</td>
					<td>{$vo['customername']}</td>
					<td>{$vo['customermanager']}</td>
					<td>{$vo['phone']}</td>
					<td>{$vo['email']}</td>
					<td>{$vo['address']}</td>
					<td><a class="delete"
						href="__URL__/foreverdelete/ids/{$vo['id']}/navTabId/__MODULE__"
						target="ajaxTodo" calback="navTabAjaxMenu" title="你确定要删除吗？"><span>删除</span></a>
						| <a href="__URL__/edit/id/{$vo['id']}" target="dialog"
						mask="true" width="505" height="400">编辑</a></td>
				</tr>
				</volist>
			</tbody>
		</table>

		<div class="panelBar">
			<div class="pages">
				<span>每页</span> <select class="combox" name="numPerPage"
					onchange="navTabPageBreak({numPerPage:this.value})">
					<eq name="numPerPage" value="24">
					<option value="24" selected>24</option>
					<else />
					<option value="24">24</option>
					</eq>
					<eq name="numPerPage" value="50">
					<option value="50" selected>50</option>
					<else />
					<option value="50">50</option>
					</eq>
					<eq name="numPerPage" value="100">
					<option value="100" selected>100</option>
					<else />
					<option value="100">100</option>
					</eq>
					<eq name="numPerPage" value="200">
					<option value="200" selected>200</option>
					<else />
					<option value="200">200</option>
					</eq>
				</select> <span>条，共{$totalCount}条</span>
			</div>
			<div class="pagination" targetType="navTab"
				totalCount="{$totalCount}" numPerPage="{$numPerPage}"
				pageNumShown="10" currentPage="{$currentPage}"></div>
		</div>
	</div>
</div>

